package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.zhentao.model.common.app.dto.UserDataDto;
import com.zhentao.model.common.app.pojo.AppUserData;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.AppUserDataService;
import com.zhentao.mapper.AppUserDataMapper;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author 贾晓婷
* @description 针对表【app_user_data】的数据库操作Service实现
* @createDate 2024-09-26 11:55:20
*/
@Service
public class AppUserDataServiceImpl extends ServiceImpl<AppUserDataMapper, AppUserData>
    implements AppUserDataService{
    @Resource
    private AppUserDataMapper appUserDataMapper;

    @Override
    public ResponseResult selectById(Integer userDataId) {
        AppUserData appUserData = appUserDataMapper.selectById(userDataId);
        return ResponseResult.okResult(appUserData);
    }

    @Override
    public ResponseResult appUpdate(AppUserData appUserData) {
        appUserDataMapper.updateById(appUserData);
        return ResponseResult.okResult(appUserData);
    }
}